import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '@/components/Home/index'
import Comment from '@/components/Comment/index'
import Intro from '@/components/Intro/index'
import Datetime from '@/components/Datetime/index'

import Teams from '@/components/Teams/index'
import Team from '@/components/Teams/Team.vue'

import Judges from '@/components/Judges/index'
import JudgesTeams from '@/components/Judges/JudgesTeams'
import JudgesTeam from '@/components/Judges/JudgesTeam.vue'

Vue.use(VueRouter)

let router =  new VueRouter({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
    	path: '/comment',
    	component: Comment
    },
    {
    	path: '/intro',
    	component: Intro
    },
    {
    	path: '/datetime',
    	component: Datetime
    },
    {
    	path: '/teams',
    	component: Teams
    },
    {
        path: '/team/:team_id',
        component: Team
    },
    {
    	path: '/judges',
    	component: Judges
    },
    {
        path: '/judges_teams',
        component: JudgesTeams
    },
    {
        path: '/judges_team/:team_id',
        component: JudgesTeam
    }
  ]
});

export default router;
